<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 300px;
            display: flex;
        }
        .left{
            min-height: 100px;
            width: 100px;
            background-color: pink;
        }
        .right{
            flex: 1;
            display: flex;
            height: fit-content;
            flex-wrap: wrap;
            padding: 10px;
            padding-bottom: 2px;
            border: 1px solid #ccc;
            box-sizing: border-box;
        }
        .content{
            width: 50px;
            min-height: 100px;
            margin-right: 8px;
            margin-bottom: 8px;
            height: 100%;
            background-color: skyblue;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="left"></div>
        <div class="right">
            <div class="content"></div>
            <div class="content"></div>
            <div class="content"></div>
            <div class="content"></div>
            <div class="content"></div>
        </div>
    </div>
</body>
</html>